<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ page contentType="text/html; charset=utf-8"  import="com.leexuan.ordersystem.beans.*" import="java.util.*"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="css/admincp.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="script/common.js"></SCRIPT>

<SCRIPT src="script/iframe.js" type=text/javascript></SCRIPT>

  
<html:base/></HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>订单管理&nbsp;>>&nbsp;未发货订单列表</TD></TR></TBODY></TABLE><BR>

      <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
        <TBODY>
        <TR class=header>
          <TD width="10%">订单编号</TD>
          <TD width="15%">客户名称</TD>
          <TD width="10%">订货日期</TD>
          <TD width="10%">发货日期</TD>
          <TD width="10%">订单金额</TD>
          <TD width="10%">发货方式</TD>
          <TD width="10%">经办人</TD>        
          <TD width="25%">操作</TD></TR>
<%

ArrayList arraylist =new ArrayList();
arraylist = (ArrayList)session.getAttribute("orders");

Order[] orders = new Order[arraylist.size()];
arraylist.toArray(orders);

for(int i =0;i<orders.length;i++){
%>              
        <TR align=middle>
          <TD class=altbg1>#<%=orders[i].getOid()%></TD>
          <TD class=altbg2><%=orders[i].getCname() %></TD>
          <TD class=altbg1><%=orders[i].getDate() %></TD>
          <TD class=altbg2><%=orders[i].getDdate() %></TD>
          <TD class=altbg1><%=orders[i].getSum() %> 元</TD>
          <TD class=altbg2><%=orders[i].getDname() %></TD>
          <TD class=altbg1><%=orders[i].getAname() %></TD>
          <TD class=altbg2>
          <a href="listOrderDetail.do?oid=<%=orders[i].getOid() %>" target="main">订单明细</a>  
          	<a href="delOrder.do?oid=<%=orders[i].getOid() %>" target="main" onclick="return window.confirm('你确定要删除吗?');">删除</a>  
          	<a href="listOrderDetail.do?oid=<%=orders[i].getOid() %>" target="main">产品发货</a>
          </TD>

          </TR>

<% }
session.removeAttribute("orders");
%>

</TBODY></TABLE></TD></TR></TBODY></TABLE>

<%@include file= "./footer.jsp"%>
